a = [3, 5, 1, 0, 7, 2, 9, 6, 5, 7, 1, 4]
c = len(a)
for i in range(c):
    for j in range(c):
        if j + 1 < c and a[j] > a[j + 1]:
            a[j], a[j + 1] = a[j + 1], a[j]
print(a)
